package com.hudilao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hudilao.dto.DishSaleDTO;
import com.hudilao.entity.OrderDetail;
import com.hudilao.mapper.OrderDetailMapper;
import com.hudilao.vo.OrderHistoryVO;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


public interface OrderDetailService extends IService<OrderDetail> {

    /**
     * 根据订单id查询订单详情
     * @param orderId
     * @return
     */
    public List<OrderDetail> getOrderDetailsByOrderId(long orderId);

    public List<OrderDetail> getOrderDetailsByCustomerId(long customerId);



    List<DishSaleDTO> getTopSellingDishes(String timeRange);

}
